From: Domas Mituzas Date: Mon, 23 Jan 2006 20:57:57 +0000 (+0000) Subject: allow to enable full tidy X-Git-Tag: 1.6.0~435 X-Git-Url: http://git.cyclocoop.org/%28%5B%5E/404?a=commitdiff_plain;h=e9f40e54a483f832dd0ad95835f7af2c392e4a89;p=lhc%2Fweb%2Fwiklou.git allow to enable full tidy --- diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 1de1d1cc6a..b971c6b269 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -1400,6 +1400,7 @@ $wgRawHtml = false; * 'extension=tidy.so' to php.ini. */ $wgUseTidy = false; +$wgAlwaysUseTidy = false; $wgTidyBin = 'tidy'; $wgTidyConf = $IP.'/extensions/tidy/tidy.conf'; $wgTidyOpts = ''; diff --git a/includes/Parser.php b/includes/Parser.php index 8a75a24adf..97b18c6b5e 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -176,7 +176,7 @@ class Parser * to internalParse() which does all the real work. */ - global $wgUseTidy, $wgContLang; + global $wgUseTidy, $wgAlwaysUseTidy, $wgContLang; $fname = 'Parser::parse'; wfProfileIn( $fname ); @@ -237,7 +237,7 @@ class Parser $text = Sanitizer::normalizeCharReferences( $text ); - if ($wgUseTidy and $this->mOptions->mTidy) { + if (($wgUseTidy and $this->mOptions->mTidy) or $wgAlwaysUseTidy) { $text = Parser::tidy($text); }